﻿using Sunny.UI;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Toolbox.form.test.picture
{
    public partial class PictureTestForm : UIPage
    {
        public PictureTestForm()
        {
            InitializeComponent();
        }

        public override void Init()
        {

            InitView();
        }

        public override void Final()
        {
            // 退出界面执行
            for (int i = this.flowLayoutPanel1.Controls.Count - 1; i >= 0; i--)
            {
                this.flowLayoutPanel1.Controls[i].Dispose();
            }

        }

        private void InitView()
        {
            for(int i=0; i<2; i++)
            {
                PictureTestTitlePanel panel = new PictureTestTitlePanel();
                panel.Text = $"Panel{i}";
                panel.Parent = this.flowLayoutPanel1;
            }
            
        }
    }
}
